// 封装所有和用户相关的接口函数
import request from "@/utils/http";

/**
 * @description: 验证登录信息
 * @param {*}
 * @return {*}
 */
export function loginAPI({ account, password }) {
    return request({
        url: "/login",
        method: "POST",
        data: {
            account,
            password,
        },
    });
}

/**
 * @description: 猜你喜欢信息
 * @param {*}
 * @return {*}
 */
export const getLikeListAPI = ({ limit = 4 }) => {
    return request({
        url: "/goods/relevant",
        params: {
            limit,
        },
    });
};
